<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="mvc" %>
<%@ include file="nav.jsp"%>
<%@ include file="logo.jsp"%>
<%@ include file="item.jsp"%>
<%@ include file="footer.jsp" %>
<rapid:override name="contentContainer">
<div class="row">
     <div class="col-sm-12 minBox" >

     	<%
		try{
			if(session != null){
				session.setAttribute("changeType", "medical");
			}
		}
		catch (Exception e){
			out.print("null");
		}
			%>
     	<div class="center">
     		<h1 style="color: #0ea6b5 !important;font-weight: 800 !important;font-size: 40px !important; line-height: 50px !important;letter-spacing: 0 !important;">编辑宠物过敏信息</h1>
     	</div>
     	<mvc:form modelAttribute="petDetail" role="form" action="/pethub/detail-changed" method="post" class="registration-form">
		   <div class="col-sm-11 col-md-11 col-lg-11 registBox">
		   		<div class="col-sm-12 col-md-12 col-lg-12 registMinBox">
			   		<div class="form-group">
						<mvc:label path="petMedicalTitle" for="petMedicalTitle" class="control-label ">标题:</mvc:label>
						<div class="col-lg-5 col-md-5 col-xs-12  buttonMin">
							<mvc:input path="petMedicalTitle" id='petMedicalTitle' type="petMedicalTitle" placeholder="宠物用药说明" class="form-control" />
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				<div class="col-sm-12 col-md-12 col-lg-12 registMinBox">
			   		<div class="form-group">
						<mvc:label path="petMedicalDosage" for="petMedicalTitle" class="control-label">用药剂量:</mvc:label>
						<div class="col-lg-5 col-md-5 col-xs-12  buttonMin">
							<mvc:input path="petMedicalDosage" id='petMedicalDosage' type="petMedicalTitle" placeholder="每次剂量" class="form-control" />
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				<div class="col-sm-12 col-md-12 col-lg-12 float-left registMinBox">
			   		<div class="form-group">
						<mvc:label path="petMedicalFrequency" for="petMedicalFrequency" class="control-label ">用药频率:</mvc:label>
						<mvc:select path="petMedicalFrequency" class="buttonMin"> 
							<mvc:option value="NONE" label="频率"/> 
							<mvc:option value="4timesADay" label="一天四次"/> 
							<mvc:option value="3timesADay" label="一天三次"/> 
							<mvc:option value="2timesADay" label="一天两次"/> 
							<mvc:option value="1timesADay" label="一天一次"/> 
							<mvc:option value="1timesTDay" label="两天一次"/> 
							<mvc:option value="1timesFDay" label="五天一次"/> 
						</mvc:select>
						<div class="clearfix"></div>
					</div>
				</div>
				<div class="clearfix"></div>
				<div class="col-sm-12 col-md-12 col-lg-12 registMinBox">
			   		<div class="form-group">
						<mvc:label path="petMedicalPurpose" for="petMedicalPurpose" class="control-label">用药原因:</mvc:label>
						<div class="col-lg-5 col-md-5 col-xs-12  buttonMin">
							<mvc:input path="petMedicalPurpose" id='petMedicalPurpose' type="petMedicalPurpose" placeholder="宠物用药原因" class="form-control" />
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				<div class="col-sm-12 col-md-12 col-lg-12 registMinBox">
			   		<div class="form-group">
						<mvc:label path="petMedicalVeterinary" for="petMedicalVeterinary" class="control-label">处方药:</mvc:label>
						<div class="col-lg-5 col-md-5 col-xs-12  buttonMin">
							<mvc:input path="petMedicalVeterinary" id='petMedicalVeterinary' type="petMedicalVeterinary" placeholder="宠物处方药" class="form-control" />
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				<div class="col-sm-12 col-md-12 col-lg-12 registMinBox">
			   		<div class="form-group">
						<mvc:label path="petMedicalOtherInfo" for="petMedicalOtherInfo" class="control-label">其他信息:</mvc:label>
						<div class="buttonMin col-lg-5 col-md-5 col-xs-12  ">
							<mvc:textarea path="petMedicalOtherInfo" id='petMedicalOtherInfo' row="10" cols="60%" />
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				<div class="clearfix"></div>
			     <div>
			     	<button id="submitBtn" type="submit" class="btn btn-default float-left submitButton">提交</button>
			     </div>
			     <div>
			     	<button onclick="returnBtn()" class="btn btn-default float-left submitButton">返回</button>
			     </div>
			     <div class="clearfix"></div>
		     </div>
		     
		     
		     
   		</mvc:form>
   
     </div>
 </div>
</rapid:override>
<%@ include file="base.jsp" %>
<script type="text/javascript">
	function returnBtn(){
		window.location.href='<%if(userInfo != null){out.print("/pethub/pet-medical/" + userInfo.getID());}else{out.print("/pethub/pet-medical/null");}%>'
	}
</script>